package com.hd.openapi.web.cotenollen;

import com.hd.openapi.common.ResultTable;
import com.hd.openapi.servies.logser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/search")
public class seaconntlle {
    @Autowired
    private logser ser;

    @RequestMapping("/table")
    private ResultTable table(@RequestParam(defaultValue = "1") Integer page,
                              @RequestParam(defaultValue = "5") Integer limit, String realName){
        return ser.getdata(page,limit,realName);
    }
}
